﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="ERP.Page.Index" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>IMS | Business manager software company</title>
    <link href="../Css/main.css" rel="stylesheet" />
    <link href="../Css/style.css" rel="stylesheet" />
    <link href="../Img/icon.ico" rel="shortcut icon" type="image/x-icon" />
    <link href="../Modules/FileUpload/fileupload.css" rel="stylesheet" />
    <script>
        var FormatNumber = function (str) {
            var strTemp = GetNumber(str);
            if (strTemp.length <= 3)
                return strTemp;
            var strResult = "";
            var i;
            for (i = 0; i < strTemp.length; i++)
                strTemp = strTemp.replace(/[,]/g, "");
            for (i = strTemp.length; i >= 0; i--) {
                if (strResult.length > 0 && (strTemp.length - i - 1) % 3 == 0)
                    strResult = "," + strResult;
                strResult = strTemp.substring(i, i + 1) + strResult;
            }
            return strResult;
        };
        function GetNumber(str) {
            for (var i = 0; i < str.length; i++) {
                var temp = str.substring(i, i + 1);
                if (!(temp == "," || temp == "." || (temp >= 0 && temp <= 9))) {
                    alert("Vui lòng nhập số (0-9)!");
                    return str.substring(0, i);
                }
                if (temp == " ")
                    return str.substring(0, i);
            }
            return str;
        };
    </script>
    <script>
        var submitValue = function (grid, hiddenFormat, format) {
            hiddenFormat.setValue(format);
            grid.submitData(false, { isUpload: true });
        };

        var template = '<span style="color:{0};">{1}</span>';

        var change = function (value) {
            return window.Ext.String.format(template, (value > 0) ? "green" : "red", value);
        };

        var pctChange = function (value) {
            return window.Ext.String.format(template, (value > 0) ? "green" : "red", value + "%");
        };

        var gridNull = function (value) {
            if (value == "") {
                return "-";
            } else {
                return value;
            }
        };
    </script>
    <script>
        var showResult = function (btn) {
            window.Ext.Msg.notify("Button Click", "You clicked the " + btn + " button");
        };

        var showResultText = function (btn, text) {
            window.Ext.Msg.notify("Button Click", "You clicked the " + btn + 'button and entered the text "' + text + '".');
        };
    </script>
    <script>
        var template = 'color:{0};';

        var change = function (value, meta) {
            meta.style = window.Ext.String.format(template, (value > 0) ? "green" : "red");
            return value;
        };

        var pctChange = function (value, meta) {
            meta.style = window.Ext.String.format(template, (value > 0) ? "green" : "red");
            return value + "%";
        };
    </script>
    <%--FileManager--%>
    <ext:XScript runat="server">
        <script>
            var prepareData = function (data) {
                data.shortName = window.Ext.util.Format.ellipsis(data.name, 15);
                data.sizeString = window.Ext.util.Format.fileSize(data.size);
                data.dateString = window.Ext.Date.format(data.lastmod, "m/d/Y g:i a");

                return data;
            };
            
            var selectionChanged = function (dv,nodes) {
                var l = nodes.length;
                #{PanelFile}.setTitle('Tập tin (' + l + ' tập tin được chọn)');
            };
        </script>
    </ext:XScript>
    <%--End--%>
</head>
<body>
    <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager" runat="server" Locale="Client" DisableViewState="true">
            <StartupMask Message="Đang tải..." />
        </ext:ResourceManager>
        <ext:Viewport runat="server" Layout="Border">
            <Items>
                <ext:Panel ID="PanelHeader"
                    runat="server"
                    Header="false"
                    Region="North"
                    Border="false"
                    Layout="FitLayout">
                    <Content>
                        <div id="titlebar">
                            <div id="left">
                                <div class="minor">
                                    <ext:Toolbar ID="Toolbartop" runat="server" Dock="Top" Border="false">
                                        <Items>
                                            <ext:Button ID="btnOption" runat="server" Text="Hệ thống" ToolTip="Hệ thống" MarginSpec="0 8 0 8">
                                                <Menu>
                                                    <ext:Menu ID="MenuMain" runat="server">
                                                        <Items>
                                                            <ext:MenuItem ID="MenuItemBakupDatabase" runat="server" Text="Bakup CSDL" Icon="Database"></ext:MenuItem>
                                                            <ext:MenuSeparator ID="MenuSeparator2" runat="server" />
                                                            <ext:MenuItem ID="MenuItemUserInfo" runat="server" Text="Thông tin tài khoản" Icon="User">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuItemUserInfo_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuSeparator ID="MenuSeparator3" runat="server" />
                                                            <ext:MenuItem ID="MenuItemChangePage" runat="server" Text="Đổi mật khẩu" Icon="UserEdit">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuItemChangePage_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuSeparator ID="MenuSeparator4" runat="server" />
                                                            <ext:MenuItem ID="MenuItemExit" runat="server" Text="Thoát" Icon="Cross">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuItemExit_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải..."></EventMask>
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                        </Items>
                                                    </ext:Menu>
                                                </Menu>
                                            </ext:Button>
                                            <ext:Button ID="btnAbout" runat="server" Text="Trợ giúp">
                                                <Menu>
                                                    <ext:Menu ID="MenuAbout" runat="server">
                                                        <Items>
                                                            <ext:MenuItem ID="MenuTutorial" runat="server" Text="Hướng dẫn" Icon="Book"></ext:MenuItem>
                                                            <ext:MenuSeparator ID="MenuSeparator1" runat="server" />
                                                            <ext:MenuItem ID="MenuItemUpdateSoft" runat="server" Text="Cập nhật phần mềm" Icon="Build"></ext:MenuItem>
                                                            <ext:MenuSeparator ID="MenuSeparator5" runat="server" />
                                                            <ext:MenuItem ID="MenuItemAbout" runat="server" Text="Thông tin phần mềm" Icon="Information">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuItemAbout_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                        </Items>
                                                    </ext:Menu>
                                                </Menu>
                                            </ext:Button>
                                        </Items>
                                    </ext:Toolbar>
                                </div>
                                <div class="clr"></div>
                            </div>
                        </div>
                    </Content>
                </ext:Panel>
                <ext:Panel ID="PanelCenter"
                    runat="server"
                    Header="false"
                    Region="North"
                    Border="false"
                    Layout="FitLayout"
                    Height="45">
                    <Content>
                        <ext:Toolbar ID="ToolbarCenter" runat="server" Dock="Top" Flex="1">
                            <Items>
                                <ext:Button ID="btnResources" runat="server" Icon="Group" Text="Tài nguyên" Border="true" Height="40" MarginSpec="0 8 0 8">
                                    <Listeners>
                                    </Listeners>
                                    <ToolTips>
                                        <ext:ToolTip ID="ToolTip1" runat="server" Html="Tài nguyên" />
                                    </ToolTips>
                                </ext:Button>
                                <ext:ToolbarSeparator Height="30" />
                                <ext:Button ID="btnCusToolbar" runat="server" Icon="UserGreen" Text="Khách hàng" Border="true" Height="40" MarginSpec="0 8 0 8">
                                    <Listeners>
                                    </Listeners>
                                    <ToolTips>
                                        <ext:ToolTip ID="ToolTip2" runat="server" Html="Khách hàng" />
                                    </ToolTips>
                                </ext:Button>
                                <ext:ToolbarSeparator Height="30" />
                                <ext:Button ID="btnMaterialToolbar" runat="server" Icon="Box" Text="Vật tư" Border="true" Height="40" MarginSpec="0 8 0 8">
                                    <Listeners>
                                    </Listeners>
                                    <ToolTips>
                                        <ext:ToolTip ID="ToolTipMaterial" runat="server" Html="Vật tư" />
                                    </ToolTips>
                                </ext:Button>
                                <ext:ToolbarSeparator Height="30" />
                                <ext:Button ID="btnCalendarDate" runat="server" Icon="Calendar" Text="Lịch hẹn" Border="true" Height="40" MarginSpec="0 8 0 8">
                                    <Listeners>
                                    </Listeners>
                                    <ToolTips>
                                        <ext:ToolTip ID="ToolTip3" runat="server" Html="Lịch hẹn" />
                                    </ToolTips>
                                </ext:Button>
                                <ext:ToolbarSeparator Height="30" />
                                <ext:Button ID="btnReportToolbar" runat="server" Icon="Report" Text="Báo cáo" Border="true" Height="40" MarginSpec="0 8 0 8">
                                    <Listeners>
                                    </Listeners>
                                    <ToolTips>
                                        <ext:ToolTip ID="ToolTip4" runat="server" Html="Báo cáo" />
                                    </ToolTips>
                                </ext:Button>
                                <ext:ToolbarSeparator Height="30" />
                                <ext:Button ID="btnAnnouncement" runat="server" Icon="Note" Text="Thông báo" Border="true" Height="40" MarginSpec="0 8 0 8">
                                    <Listeners>
                                    </Listeners>
                                    <ToolTips>
                                        <ext:ToolTip ID="ToolTip5" runat="server" Html="Thông báo" />
                                    </ToolTips>
                                </ext:Button>
                                <ext:ToolbarSeparator Height="30" />
                                <ext:Button ID="btnLockWarehouse" runat="server" Icon="ApplicationKey" Text="Chốt kho" Border="true" Height="40" MarginSpec="0 8 0 8">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabLockWarehouse});#{TabPanel1}.setActiveTab(#{TabLockWarehouse});" />
                                    </Listeners>
                                    <ToolTips>
                                        <ext:ToolTip ID="ToolTip6" runat="server" Html="Thông báo" />
                                    </ToolTips>
                                </ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </Content>
                </ext:Panel>
                <ext:Panel ID="PanelLeft" runat="server"
                    Title="Danh sách Modules"
                    Region="West"
                    Layout="AccordionLayout"
                    Width="215"
                    MinWidth="225"
                    MaxWidth="400"
                    Split="true"
                    Collapsible="true">
                    <Items>
                        <ext:Panel ID="PanelQuanTriHeThong" runat="server" Title="Quản trị hệ thống" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="linkNhomQuyen" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Nhóm quyền" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabNhomQuyen});#{TabPanel1}.setActiveTab(#{TabNhomQuyen});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkModulesMain" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Modules Main" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabModoulesMain});#{TabPanel1}.setActiveTab(#{TabModoulesMain});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkModulesParrent" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Modules Parrent" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabModulesParrent});#{TabPanel1}.setActiveTab(#{TabModulesParrent});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkRoles" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phân quyền" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabRoles});#{TabPanel1}.setActiveTab(#{TabRoles});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkUser" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Người dùng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabUser});#{TabPanel1}.setActiveTab(#{TabUser});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkMailSetting" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Cấu hình Mail" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabMailSetting});#{TabPanel1}.setActiveTab(#{TabMailSetting});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkFileManager" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Quản lý tệp tin" Disabled="false">
                                    <DirectEvents>
                                        <Click OnEvent="linkFileManager_Click">
                                            <EventMask ShowMask="true" Msg="Đang tải" />
                                        </Click>
                                    </DirectEvents>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelQuanLyNganQuy" runat="server" Title="Quản lý ngân quỹ" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="linkQuanLyTienMat" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Tiền mặt" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabTienMat});#{TabPanel1}.setActiveTab(#{TabTienMat});" />
                                    </Listeners>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelQuanLyPhieuThu" runat="server" Title="Quản lý phiếu thu" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="linkPhuongThucPhieuThu" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phương thức phiếu thu" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabPhuongThucPhieuThu});#{TabPanel1}.setActiveTab(#{TabPhuongThucPhieuThu});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkPhieuThu" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phiếu thu" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabPhieuThu});#{TabPanel1}.setActiveTab(#{TabPhieuThu});" />
                                    </Listeners>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelQuanLyPhieuChi" runat="server" Title="Quản lý phiếu chi" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkPhuongThucPhieuChi" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phương thức phiếu chi" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabPhuongThucPhieuChi});#{TabPanel1}.setActiveTab(#{TabPhuongThucPhieuChi});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkPhieuChi" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phiếu chi" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabPhieuChi});#{TabPanel1}.setActiveTab(#{TabPhieuChi});" />
                                    </Listeners>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelQuanLyCongNo" runat="server" Title="Quản lý công nợ" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="ShowTabLiabilities_Expenditure" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Chi tiết công nợ phải trả" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabLiabilities_Expenditure});#{TabPanel1}.setActiveTab(#{TabLiabilities_Expenditure});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <ext:LinkButton ID="ShowTabLiabilities_Expenditure_Sum" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Tổng hợp công nợ phải trả" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabLiabilities_Expenditure_Sum});#{TabPanel1}.setActiveTab(#{TabLiabilities_Expenditure_Sum});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabLiabilities_Receiver" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Chi tiết công nợ phải thu" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabLiabilities_Receiver});#{TabPanel1}.setActiveTab(#{TabLiabilities_Receiver});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <ext:LinkButton ID="ShowTabLiabilities_Receiver_Sum" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Tổng hợp công nợ phải thu" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabLiabilities_Receiver_Sum});#{TabPanel1}.setActiveTab(#{TabLiabilities_Receiver_Sum});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabReportLiabilities_Payment_Deadline" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Chi tiết công nợ quá hạn phải trả" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabReportLiabilities_Payment_Deadline});#{TabPanel1}.setActiveTab(#{TabReportLiabilities_Payment_Deadline});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <ext:LinkButton ID="ShowTabReportLiabilities_Payment_Deadline_SUM" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Tổng hợp công nợ quá hạn phải trả" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabReportLiabilities_Payment_Deadline_SUM});#{TabPanel1}.setActiveTab(#{TabReportLiabilities_Payment_Deadline_SUM});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabReportLiabilities_Payment_Deadline_Receiver" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Chi tiết công nợ quá hạn phải thu" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabReportLiabilities_Payment_Deadline_Receiver});#{TabPanel1}.setActiveTab(#{TabReportLiabilities_Payment_Deadline_Receiver});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <ext:LinkButton ID="ShowTabReportLiabilities_Payment_Deadline_SUM_Receiver" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Tổng hợp công nợ quá hạn phải thu" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabReportLiabilities_Payment_Deadline_SUM_Receiver});#{TabPanel1}.setActiveTab(#{TabReportLiabilities_Payment_Deadline_SUM_Receiver});" />
                                    </Listeners>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelMuaHang" runat="server" Title="Mua hàng" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="ShowTabDonDatHang" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phiếu đề nghị mua hàng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabDonDatHang});#{TabPanel1}.setActiveTab(#{TabDonDatHang});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton runat="server" Cls="link-menu" ID="ShowTabMuaHang" Icon="ApplicationViewList" Text="Mua hàng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabMuaHang});#{TabPanel1}.setActiveTab(#{TabMuaHang});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <%-- <ext:LinkButton runat="server" Cls="link-menu" ID="ShowTabBanHang" Icon="ApplicationViewList" Text="Bán hàng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabPanel1}.bin[2]);this.setDisabled(true);" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>--%>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelBanHang" runat="server" Title="Bán hàng" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="ShowTabDonBanHang" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phiếu đề nghị" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabBanHang});#{TabPanel1}.setActiveTab(#{TabBanHang});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <ext:LinkButton ID="ShowTabBanHang" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Bán hàng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabBanHangMain});#{TabPanel1}.setActiveTab(#{TabBanHangMain});" />
                                    </Listeners>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelCongTy" runat="server" Title="Công ty" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="ShowTabCongTy" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phòng ban" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabPhongBan});#{TabPanel1}.setActiveTab(#{TabPhongBan});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabBoPhan" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Bộ phận" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabBoPhan});#{TabPanel1}.setActiveTab(#{TabBoPhan});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabChucVu" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Chức vụ" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabChucVu});#{TabPanel1}.setActiveTab(#{TabChucVu});" />
                                    </Listeners>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelTuDienKho" runat="server" Title="Từ điển kho" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="ShowTabChiNhanh" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Chi nhánh" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabChiNhanh});#{TabPanel1}.setActiveTab(#{TabChiNhanh});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabPhongChua" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phòng chứa" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabPhongChua});#{TabPanel1}.setActiveTab(#{TabPhongChua});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabKho" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Kho" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabKho});#{TabPanel1}.setActiveTab(#{TabKho});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabManufacturer" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Hãng sản xuất" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabDVTManufacturer});#{TabPanel1}.setActiveTab(#{TabDVTManufacturer});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabDVT" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Đơn vị tính" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabDVT});#{TabPanel1}.setActiveTab(#{TabDVT});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabBarCode" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Mã vạch" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabBarCode});#{TabPanel1}.setActiveTab(#{TabBarCode});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabNhomVatTu" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Nhóm vật tư" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabNhomVatTu});#{TabPanel1}.setActiveTab(#{TabNhomVatTu});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabVatTu" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Vật tư" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabVatTu});#{TabPanel1}.setActiveTab(#{TabVatTu});" />
                                    </Listeners>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelQuanLyKhoKho" runat="server" Title="Quản lý kho" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="ShowTabDeNghiNhapXuat" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phiếu đề nghị nhập kho" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabDeNghiNhapXuat});#{TabPanel1}.setActiveTab(#{TabDeNghiNhapXuat});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabNhapKho" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phiếu nhập kho" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabNhapKho});#{TabPanel1}.setActiveTab(#{TabNhapKho});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="LinkButton1" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phiếu đề nghị xuất kho" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabDeNghiXuat});#{TabPanel1}.setActiveTab(#{TabDeNghiXuat});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="LinkButton2" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phiếu xuất kho" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabXuatKho});#{TabPanel1}.setActiveTab(#{TabXuatKho});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="LinkButton3" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Nhập đầu kỳ" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabInventory});#{TabPanel1}.setActiveTab(#{TabInventory});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelDanhMucChung" runat="server" Title="Danh mục chung" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="ShowTabLoaiDoanhNghiep" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Loại doanh nghiệp" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabLoaiDoanhNghiep});#{TabPanel1}.setActiveTab(#{TabLoaiDoanhnghiep});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabNganHang" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Ngân hàng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabNganHang});#{TabPanel1}.setActiveTab(#{TabNganHang});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabDanToc" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Dân tộc" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabDanToc});#{TabPanel1}.setActiveTab(#{TabDanToc});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabTienTe" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Tiền tệ" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabTienTe});#{TabPanel1}.setActiveTab(#{TabTienTe});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabQuocGia" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Quốc gia" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabQuocGia});#{TabPanel1}.setActiveTab(#{TabQuocGia});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabMien" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Miền" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabMien});#{TabPanel1}.setActiveTab(#{TabMien});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabTinh" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Tỉnh" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabTinh});#{TabPanel1}.setActiveTab(#{TabTinh});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabQuanHuyen" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Quận huyện" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabQuanHuyen});#{TabPanel1}.setActiveTab(#{TabQuanHuyen});" />
                                    </Listeners>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelKeToanModule" runat="server" Title="Kế toán" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="ShowTabKhoanMucThuChi" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Khoản mục thu chi" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabKhoanMucThuChi});#{TabPanel1}.setActiveTab(#{TabKhoanMucThuChi});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabTaiKhoanThuChi" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Tài khoản thu chi" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabTaiKhoanThuChi});#{TabPanel1}.setActiveTab(#{TabTaiKhoanThuChi});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabPhanHeKeToan1" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phân hệ kế toán cấp 1" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabPhanHeKeToan1});#{TabPanel1}.setActiveTab(#{TabPhanHeKeToan1});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabPhanHeKeToan2" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phân hệ kế toán cấp 2" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabPhanHeKeToan2});#{TabPanel1}.setActiveTab(#{TabPhanHeKeToan2});" />
                                    </Listeners>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelKhachHang" runat="server" Title="Khách hàng" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="ShowTabDanhXung" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Danh xưng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabDanhXung});#{TabPanel1}.setActiveTab(#{TabDanhXung});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabKhachHang" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Khách hàng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabKhachHang});#{TabPanel1}.setActiveTab(#{TabKhachHang});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabLoaiKhachHang" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Loại khách hàng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabLoaiKhachHang});#{TabPanel1}.setActiveTab(#{TabLoaiKhachHang});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabMucDich" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Mục đích" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabMucDich});#{TabPanel1}.setActiveTab(#{TabMucDich});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabNguoiLienHe" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Người liên hệ" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabNguoiLienHe});#{TabPanel1}.setActiveTab(#{TabNguoiLienHe});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabNganhNghe" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Ngành nghề" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabNganhNghe});#{TabPanel1}.setActiveTab(#{TabNganhNghe});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabPhuongThuc" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Phương thức" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabPhuongThuc});#{TabPanel1}.setActiveTab(#{TabPhuongThuc});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabGiaoDich" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Giao dịch" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabGiaoDich});#{TabPanel1}.setActiveTab(#{TabGiaoDich});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabBaoGia" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Báo giá" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabBaoGia});#{TabPanel1}.setActiveTab(#{TabBaoGia});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="ShowTabBaoHanh" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Lập phiếu bảo hành" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabBaoHanh});#{TabPanel1}.setActiveTab(#{TabBaoHanh});" />
                                    </Listeners>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelDichVu" runat="server" Title="Dịch vụ" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="linkForm" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Biểu mẫu" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabForms});#{TabPanel1}.setActiveTab(#{TabForms});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkCustomerCare" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Chăm sóc khách hàng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabCustomerCare});#{TabPanel1}.setActiveTab(#{TabCustomerCare});" />
                                    </Listeners>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelNhanVien" runat="server" Title="Nhân viên" Border="false" BodyPadding="6" Icon="Folder" AutoScroll="True">
                            <Content>
                                <ext:LinkButton ID="linkNhanVien" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Nhân viên" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabNhanVien});#{TabPanel1}.setActiveTab(#{TabNhanVien});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                            </Content>
                        </ext:Panel>
                    </Items>
                </ext:Panel>
                <ext:Panel ID="PanelTab" runat="server" Region="Center" Layout="FitLayout" Border="false" MarginSpec="0 0 0 0">
                    <Items>
                        <ext:TabPanel ID="TabPanel1" runat="server" AutoFocus="true">
                            <Bin>
                                <ext:Panel ID="TabDonDatHang" Title="Đơn đặt hàng" runat="server" Closable="true" Hidden="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderOrder" runat="server" Path="../Modules/Order.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabMuaHang" Title="Mua hàng" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderOrderBuyMain" runat="server" Path="../Modules/OrderBuyMain.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabBanHang" Title="Đơn đặt hàng" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderOrderSell" runat="server" Path="../Modules/OrderBuySell.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabBanHangMain" Title="Bán hàng" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoader1" runat="server" Path="../Modules/SellMain.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabPhongBan" Title="Phòng ban" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Department.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabBoPhan" Title="Bộ phận" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Part.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabChucVu" Title="Chức vụ" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Job.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabChiNhanh" Title="Chi nhánh" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Branch.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabPhongChua" Title="Phòng chứa" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Room.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabKho" Title="Kho" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Warehouse.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabDVT" Title="Đơn vị tính" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Unit.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabNhomVatTu" Title="Nhóm vật tư" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Materials_Type.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabVatTu" Title="Vật tư" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Materials.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabDeNghiNhapXuat" Title="Phiếu đề nghị" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Proposed.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabNhapKho" Title="Phiếu nhập kho" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Import.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabLoaiDoanhNghiep" Title="Loại doanh nghiệp" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Enterprise.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabNganHang" Title="Ngân hàng" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Bank.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabDanToc" Title="Dân tộc" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Ethnic.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabTienTe" Title="Tiền tệ" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Currency.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabQuocGia" Title="Quốc gia" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/National.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabMien" Title="Miền" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Domain.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabTinh" Title="Tỉnh" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Province.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabQuanHuyen" Title="Quận huyện" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Districts.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabKhoanMucThuChi" Title="Khoản mục thu chi" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Income_Expenditure_Method.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabTaiKhoanThuChi" Title="Tài khoản thu chi" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Bank_Account.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabPhanHeKeToan1" Title="Phân hệ kế toán cấp 1" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderAccountLevel1" runat="server" Path="../Modules/AssignedAccountLevel_1.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabPhanHeKeToan2" Title="Phân hệ kế toán cấp 2" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderAccountLevel2" runat="server" Path="../Modules/AssignedAccountLevel_2.ascx" />
                                    </Items>
                                    <Listeners>
                                        <Close Handler="#{ShowTabPhanHeKeToan2}.setDisabled(false);" />
                                    </Listeners>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabDanhXung" Title="Danh xưng" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Vocative.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabKhachHang" Title="Khách hàng" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Customer.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabLoaiKhachHang" Title="Loại khách hàng" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Customer_Type.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabMucDich" Title="Mục đích" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Destination.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabNguoiLienHe" Title="Người liên hệ" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Contact.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabNganhNghe" Title="Ngành nghề" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Sector.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabPhuongThuc" Title="Phương thức" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Method.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabGiaoDich" Title="Giao dịch" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Transaction.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabBaoGia" Title="Báo giá" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Quotes.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="PanelThongKeDonHangDaSuDung" Title="Thống kê đơn hàng đã sử dụng" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Statistic/Statistics.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabNhanVien" Title="Nhân viên" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderNhanVien" runat="server" Path="../Modules/Employee.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabNhomQuyen" Title="Nhóm quyền" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderNhomQuyen" runat="server" Path="../Modules/GroupUser.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabModoulesMain" Title="Modules Main" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderModulesMain" runat="server" Path="../Modules/ModulesMain.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabModulesParrent" Title="Modules Parrent" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderModulesParrent" runat="server" Path="../Modules/ModulesParent.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabRoles" Title="Phân quyền" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderRoles" runat="server" Path="../Modules/UserPermisstion.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabUser" Title="Người dùng" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderUser" runat="server" Path="../Modules/User.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabMailSetting" Title="Cấu hình Mail" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderMailSetting" runat="server" Path="../Modules/Mail_Setting.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabDVTManufacturer" Title="Hãng sản xuất" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderManufacturer" runat="server" Path="../Modules/Manufacturer.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabDeNghiXuat" Title="Phiếu đề nghị xuất kho" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Proposed_Export.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabXuatKho" Title="Phiếu xuất kho" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Export.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabInventory" Title="Nhập đầu kỳ" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Inventory.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabPhuongThucPhieuThu" Title="Phương thức phiếu thu" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderReceiptReason" runat="server" Path="../Modules/ReceiptReason.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabPhuongThucPhieuChi" Title="Phương thức phiếu chi" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderExpenditureReason" runat="server" Path="../Modules/ExpenditureReason.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabPhieuThu" Title="Phiếu thu" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderReceipt" runat="server" Path="../Modules/Receipt.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabPhieuChi" Title="Phiếu chi" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderExpenditure" runat="server" Path="../Modules/Expenditure.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabLiabilities_Expenditure" Title="Chi tiết công nợ phải trả" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderLiabilities_Expenditure" runat="server" Path="../Modules/Liabilities_Expenditure.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabLiabilities_Receiver" Title="Chi tiết công nợ phải thu" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderLiabilities_Receiver" runat="server" Path="../Modules/Liabilities_Receiver.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabLiabilities_Expenditure_Sum" Title="Tổng hợp công nợ phải trả" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderLiabilities_Expenditure_Sum" runat="server" Path="../Modules/Liabilities_Expenditure_Sum.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabLiabilities_Receiver_Sum" Title="Tổng hợp công nợ phải thu" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderLiabilities_Receiver_Sum" runat="server" Path="../Modules/Liabilities_Receiver_Sum.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabLockWarehouse" Title="Lịch sử chốt kho" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderLockWarehouse" runat="server" Path="../Modules/LockWarehouse.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabTienMat" Title="Tiền mặt" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderCashFund" runat="server" Path="../Modules/CashFund.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabChoSoPhieuThu" Title="Chốt sổ phiếu thu" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderReport_Receipt" runat="server" Path="../Modules/Report_Receipt.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabChoSoPhieuChi" Title="Chốt sổ phiếu chi" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderReport_Expenditure" runat="server" Path="../Modules/Report_Expenditure.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabNhatKyChotSoPhieuThu" Title="Nhật ký chốt sổ phiếu thu" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderLogReportReceipt" runat="server" Path="../Modules/LogReportReceipt.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabNhatKyChotSoPhieuChi" Title="Nhật ký chốt sổ phiếu chi" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderLogReportExpenditure" runat="server" Path="../Modules/LogReportExpenditure.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabReportInventory" Title="Báo cáo xuất nhập tồn" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderTabReportInventory" runat="server" Path="../Modules/Report/ReportInventory.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabReportLogImportExport" Title="Nhật ký nhập xuất" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader runat="server" Path="../Modules/Report/ReportLogImportExport.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabBarCode" Title="Quản lý mã vạch" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderBarCode" runat="server" Path="../Modules/Barcode.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabBaoHanh" Title="Lập phiếu bảo hành" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderServicesMaintain" runat="server" Path="../Modules/ServicesMaintain.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabReportLiabilities_Payment_Deadline" Title="Chi tiết công nợ quá hạn phải trả" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderReportLiabilities_Payment_Deadline" runat="server" Path="../Modules/Report/ReportLiabilities_Payment_Deadline.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabReportLiabilities_Payment_Deadline_SUM" Title="Tổng hợp công nợ quá hạn phải trả" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderReportLiabilities_Payment_Deadline_SUM" runat="server" Path="../Modules/Report/ReportLiabilities_Payment_Deadline_SUM.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabReportLiabilities_Payment_Deadline_Receiver" Title="Chi tiết công nợ quá hạn phải thu" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderReportLiabilities_Payment_Deadline_Receiver" runat="server" Path="../Modules/Report/ReportLiabilities_Payment_Deadline_Receiver.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabReportLiabilities_Payment_Deadline_SUM_Receiver" Title="Tổng hợp công nợ quá hạn phải thu" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderReportLiabilities_Payment_Deadline_SUM_Receiver" runat="server" Path="../Modules/Report/ReportLiabilities_Payment_Deadline_SUM_Receiver.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabReportEmployee_Sales" Title="Chi tiết doanh số nhân viên" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderReportEmployee_Sales" runat="server" Path="../Modules/Report/ReportEmployee_Sales.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabReportEmployee_Sales_Sum" Title="Tổng hợp doanh số nhân viên" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderReportEmployee_Sales_Sum" runat="server" Path="../Modules/Report/ReportEmployee_Sales_Sum.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabReportCustomer_Sales" Title="Chi tiết doanh số khách hàng" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderReportCustomer_Sales" runat="server" Path="../Modules/Report/ReportCustomer_Sales.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabReportCustomer_Sales_Sum" Title="Tổng hợp doanh số khách hàng" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderReportCustomer_Sales_Sum" runat="server" Path="../Modules/Report/ReportCustomer_Sales_Sum.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                                <ext:Panel ID="TabForms" Title="Biểu mẫu" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                    <Items>
                                        <ext:UserControlLoader ID="UserControlLoaderForms" runat="server" Path="../Modules/Forms.ascx" />
                                    </Items>
                                </ext:Panel>
                            </Bin>
                            <Bin>
                            <ext:Panel ID="TabCustomerCare" Title="Chăm sóc khách hàng" runat="server" Hidden="true" Closable="true" CloseAction="Hide" Layout="FitLayout" Border="false">
                                <Items>
                                    <ext:UserControlLoader ID="UserControlLoaderCustomerCare" runat="server" Path="../Modules/CustomerCare.ascx" />
                                </Items>
                            </ext:Panel>
                            </Bin>
                            <Plugins>
                                <ext:BoxReorderer runat="server" />
                            </Plugins>
                            <BottomBar>
                                <ext:Toolbar runat="server" Height="30px">
                                    <Items>
                                        <ext:Label Cls="lablecontrol" Text="Tên đăng nhập :" runat="server"></ext:Label>
                                        <ext:Label ID="lbServerNameTitile" Cls="labletitile" Text="IMS" runat="server"></ext:Label>
                                        <ext:Label Cls="lablecontrol" Text="Tên máy :" runat="server"></ext:Label>
                                        <ext:Label ID="lbMachineName" Cls="labletitile" Text="TenMay" runat="server"></ext:Label>
                                        <ext:Label Cls="lablecontrol" Text="IP :" runat="server"></ext:Label>
                                        <ext:Label ID="lbIdAdress" Cls="labletitile" Text="IdAddress" runat="server"></ext:Label>
                                        <ext:Label Cls="lablecontrol" Text="Session :" runat="server"></ext:Label>
                                        <ext:Label ID="lbSessionStatus" Cls="labletitile" Text="IdAddress" runat="server"></ext:Label>
                                    </Items>
                                </ext:Toolbar>
                            </BottomBar>
                        </ext:TabPanel>
                    </Items>
                </ext:Panel>
                <ext:Panel ID="PanelRight" runat="server"
                    Title="Thống kê - Báo cáo"
                    Region="East"
                    Layout="AccordionLayout"
                    Width="225"
                    MinWidth="225"
                    MaxWidth="400"
                    Split="False"
                    Collapsible="true" Collapsed="true">
                    <Items>
                        <ext:Panel ID="PanelChotSoThuChi" runat="server" Title="Chốt sổ thu chi" Border="false" BodyPadding="6" Icon="Report">
                            <Content>
                                <ext:LinkButton ID="linkChoSoPhieuThu" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Chốt sổ phiếu thu" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabChoSoPhieuThu});#{TabPanel1}.setActiveTab(#{TabChoSoPhieuThu});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkNhatKyChotPhieuThu" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Nhật ký chốt sổ phiếu thu" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabNhatKyChotSoPhieuThu});#{TabPanel1}.setActiveTab(#{TabNhatKyChotSoPhieuThu});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkChoSoPhieuChi" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Chốt sổ phiếu chi" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabChoSoPhieuChi});#{TabPanel1}.setActiveTab(#{TabChoSoPhieuChi});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton ID="linkNhatKyChotPhieuChi" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Nhật ký chốt sổ phiếu chi" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabNhatKyChotSoPhieuChi});#{TabPanel1}.setActiveTab(#{TabNhatKyChotSoPhieuChi});" />
                                    </Listeners>
                                </ext:LinkButton>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelThongKeVaBaoCao" runat="server" Title="Thống kê mua hàng" Border="false" BodyPadding="6" Icon="Report">
                            <Content>
                                <ext:LinkButton ID="ShowTabThongKeDonHang" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="DS đơn hàng đã sử dụng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{PanelThongKeDonHangDaSuDung});this.setDisabled(true);" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                            </Content>
                        </ext:Panel>
                        <ext:Panel ID="PanelReport" runat="server" Title="Báo cáo" Border="false" BodyPadding="6" Icon="Report">
                            <Content>
                                <ext:LinkButton ID="ShowTabReportInventory" Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Báo cáo nhập xuất tồn" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabReportInventory});#{TabPanel1}.setActiveTab(#{TabReportInventory});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <ext:LinkButton Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Nhật ký nhập xuất" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabReportLogImportExport});#{TabPanel1}.setActiveTab(#{TabReportLogImportExport});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Chi tiết doanh số nhân viên" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabReportEmployee_Sales});#{TabPanel1}.setActiveTab(#{TabReportEmployee_Sales});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <ext:LinkButton Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Tổng hợp doanh số nhân viên" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabReportEmployee_Sales_Sum});#{TabPanel1}.setActiveTab(#{TabReportEmployee_Sales_Sum});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                                <ext:LinkButton Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Chi tiết doanh số khách hàng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabReportCustomer_Sales});#{TabPanel1}.setActiveTab(#{TabReportCustomer_Sales});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <ext:LinkButton Cls="link-menu" runat="server" Icon="ApplicationViewList" Text="Tổng hợp doanh số khách hàng" Disabled="false">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{TabReportCustomer_Sales_Sum});#{TabPanel1}.setActiveTab(#{TabReportCustomer_Sales_Sum});" />
                                    </Listeners>
                                </ext:LinkButton>
                                <div class="hr"></div>
                            </Content>
                        </ext:Panel>
                    </Items>
                </ext:Panel>
            </Items>
        </ext:Viewport>
        <ext:Window ID="WindowChangePass"
            runat="server"
            Width="350"
            Title="Thay đổi mật khẩu"
            Icon="UserEdit"
            Closable="false"
            Region="Center"
            BodyPadding="5"
            Modal="True"
            Hidden="true"
            DefaultButton="btnChangePass"
            Layout="Form">
            <Defaults>
                <ext:Parameter Name="LabelWidth" Value="125" Mode="Raw" />
            </Defaults>
            <Items>
                <ext:TextField
                    ID="txtPassOld"
                    runat="server"
                    FieldLabel="Mật khẩu cũ:"
                    InputType="Password"
                    AnchorHorizontal="100%">
                    <Plugins>
                        <ext:CapsLockDetector runat="server">
                            <Listeners>
                                <CapsLockOn Handler="#{txtPassOld}.showIndicator({iconCls : '#Error', tip : 'Đang bật Caps Lock'});" />
                                <CapsLockOff Handler="#{txtPassOld}.hideIndicator();" />
                            </Listeners>
                        </ext:CapsLockDetector>
                    </Plugins>
                </ext:TextField>
                <ext:TextField
                    ID="txtNewPass"
                    runat="server"
                    FieldLabel="Mật khẩu mới:"
                    InputType="Password"
                    AnchorHorizontal="100%">
                    <Listeners>
                        <ValidityChange Handler="this.next().validate();" />
                        <Blur Handler="this.next().validate();" />
                    </Listeners>
                    <Plugins>
                        <ext:CapsLockDetector runat="server">
                            <Listeners>
                                <CapsLockOn Handler="#{txtNewPass}.showIndicator({iconCls : '#Error', tip : 'Đang bật Caps Lock'});" />
                                <CapsLockOff Handler="#{txtNewPass}.hideIndicator();" />
                            </Listeners>
                        </ext:CapsLockDetector>
                    </Plugins>
                </ext:TextField>
                <ext:TextField ID="txtConfirmPasswords"
                    runat="server"
                    Vtype="password"
                    FieldLabel="Nhập lại mật khẩu:"
                    InputType="Password"
                    VtypeText="Nhập lại mật khẩu không chính xác"
                    MsgTarget="Side"
                    AnchorHorizontal="100%">
                    <CustomConfig>
                        <ext:ConfigItem Name="initialPassField" Value="txtNewPass" Mode="Value" />
                    </CustomConfig>
                    <Plugins>
                        <ext:CapsLockDetector runat="server">
                            <Listeners>
                                <CapsLockOn Handler="#{txtConfirmPasswords}.showIndicator({iconCls : '#Error', tip : 'Đang bật Caps Lock'});" />
                                <CapsLockOff Handler="#{txtConfirmPasswords}.hideIndicator();" />
                            </Listeners>
                        </ext:CapsLockDetector>
                    </Plugins>
                </ext:TextField>
            </Items>
            <Buttons>
                <ext:Button ID="btnChangePass" runat="server" Text="Đổi mật khẩu" Icon="Disk">
                    <DirectEvents>
                        <Click OnEvent="btnChangePass_Click">
                            <EventMask ShowMask="true" Msg="Đang tải" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
            <Buttons>
                <ext:Button ID="btnCancel" runat="server" Text="Thoát" Icon="Cancel">
                    <DirectEvents>
                        <Click OnEvent="btnCancel_Click">
                            <EventMask ShowMask="true" Msg="Đang tải" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
        <ext:Window ID="WindowUserInfo"
            runat="server"
            Width="350"
            Title="Thông tin tài khoản"
            Icon="User"
            Closable="false"
            Region="Center"
            BodyPadding="5"
            Resizable="False"
            Modal="True"
            Hidden="true"
            Layout="Form">
            <Items>
                <ext:FormPanel
                    runat="server"
                    Height="400"
                    Width="328"
                    Header="False"
                    BodyPadding="5"
                    MonitorResize="true">
                    <Items>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Tên đăng nhập"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbUserName" runat="server" Text="Tên tài khoản" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Tên nhân viên"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbFullName" runat="server" Text="Tên nhân viên" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Chức vụ"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbJob" runat="server" Text="Chức vụ" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Nhóm quyền"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbRoles" runat="server" Text="Nhóm quyền" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Số điện thoại"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbCellPhone" runat="server" Text="Điện thoại" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Email"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbEmail" runat="server" Text="Email" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Ngày tạo"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbCreateDate" runat="server" Text="dd/MM/yyyy" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                    </Items>
                </ext:FormPanel>
            </Items>
            <Buttons>
                <ext:Button ID="btnClose" runat="server" Text="Đóng lại" Icon="Cancel">
                    <DirectEvents>
                        <Click OnEvent="btnClose_Click">
                            <EventMask ShowMask="true" Msg="Đang tải" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
        <ext:Window ID="WindowSoftInfo"
            runat="server"
            Width="350"
            Title="Thông tin phần mềm"
            Icon="Information"
            Closable="false"
            Region="Center"
            BodyPadding="5"
            Resizable="False"
            Modal="True"
            Hidden="true"
            Layout="Form">
            <Items>
                <ext:FormPanel
                    runat="server"
                    Height="400"
                    Width="328"
                    Header="False"
                    BodyPadding="5"
                    MonitorResize="true">
                    <Items>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Tên khách hàng"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbCustomer" runat="server" Text="Tên khách hàng" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Loại License"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbLicenseTye" runat="server" Text="Loại License" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="License"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbLicense" runat="server" Text="License" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Key"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbKey" runat="server" Text="Key" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Ngày đăng ký"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbCreateDateLicense" runat="server" Text="Ngày đăng ký" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Phiên bản"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbVersion" runat="server" Text="Version" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            FieldLabel="Trạng thái"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbStatustActive" runat="server" Text="StatustActive" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                    </Items>
                </ext:FormPanel>
            </Items>
            <Buttons>
                <ext:Button ID="btnCloseSoftInfo" runat="server" Text="Đóng lại" Icon="Cancel">
                    <DirectEvents>
                        <Click OnEvent="btnCloseSoftInfo_Click">
                            <EventMask ShowMask="true" Msg="Đang tải" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
        <%--FileManager--%>
        <ext:Window
            ID="WindowFileManager"
            runat="server"
            Title="Quản lý tệp tin"
            Icon="Application"
            Width="795"
            Height="511"
            Border="False"
            Collapsible="False"
            Region="Center"
            Resizable="False"
            Hidden="True"
            Modal="True"
            HideMode="Offsets"
            Plain="true"
            Layout="BorderLayout">
            <Items>
                <ext:Panel ID="PanelToolbarHeader"
                    runat="server"
                    Header="false"
                    Region="North"
                    Border="false"
                    Layout="FitLayout">
                    <Content>
                        <ext:Toolbar runat="server" Dock="Top" Border="false">
                            <Items>
                                <ext:Button ID="btnCreateFolder" runat="server" Text="Tạo thư mục" Icon="FolderAdd">
                                    <DirectEvents>
                                        <Click OnEvent="btnCreateFolder_Click">
                                            <EventMask ShowMask="True" Msg="Đang tải"></EventMask>
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                <ext:ToolbarSeparator />
                                <ext:Button ID="btnDelFolder" runat="server" Text="Xoá" Icon="Reload">
                                    <DirectEvents>
                                        <Click OnEvent="btnDelFolder_Click">
                                            <EventMask ShowMask="True" Msg="Đang tải"></EventMask>
                                            <ExtraParams>
                                                <ext:Parameter Name="name" Value="btnDel"></ext:Parameter>
                                            </ExtraParams>
                                            <Confirmation ConfirmRequest="true"
                                                Title="Thông Báo" Message="Bạn có muốn xoá thư mục này không ?">
                                            </Confirmation>
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                <ext:ToolbarSeparator />
                                <ext:FormPanel
                                    ID="BasicForm"
                                    runat="server"
                                    Frame="True"
                                    MarginSpec="0 8 0 0"
                                    AutoHeight="true">
                                    <Items>
                                        <ext:FileUploadField
                                            ID="FileUploadPanel"
                                            runat="server"
                                            EmptyText="Chọn tập tin"
                                            ButtonText=""
                                            MarginSpec="0 8 0 0"
                                            Icon="Attach">
                                        </ext:FileUploadField>
                                    </Items>
                                </ext:FormPanel>
                                <ext:ToolbarSeparator />
                                <ext:Button ID="btnUpload" runat="server" Text="Tải lên">
                                    <DirectEvents>
                                        <Click
                                            OnEvent="btnUpload_Click"
                                            Before="if (!#{BasicForm}.getForm().isValid()) { return false; } 
                                                Ext.Msg.wait('Đang tải tập tin...', 'Đang tải');"
                                            Failure="Ext.Msg.show({ 
                                                title   : 'Lỗi', 
                                                msg     : 'Có lỗi xảy ra trong quá trình tải lên.Hoặc dung lượng tập tin quá lớn', 
                                                minWidth: 200, 
                                                modal   : true, 
                                                icon    : Ext.Msg.ERROR, 
                                                buttons : Ext.Msg.OK 
                                            });">
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                <ext:ToolbarSeparator />
                                <ext:Button ID="btnRefreshFolder" runat="server" Text="Tải lại" Icon="Reload">
                                    <DirectEvents>
                                        <Click OnEvent="btnRefreshFolder_Click">
                                            <EventMask ShowMask="True" Msg="Đang tải"></EventMask>
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </Content>
                </ext:Panel>
                <ext:Panel ID="PanelFolder"
                    runat="server"
                    Region="West"
                    Collapsible="False"
                    MinWidth="175"
                    Split="False"
                    Width="175"
                    Title="Thư mục">
                    <Content>
                        <ext:GridPanel
                            ID="grFolder"
                            Cls="grid-double"
                            runat="server"
                            EnableColumnMove="False"
                            Border="False">
                            <Store>
                                <ext:Store
                                    ID="StoreFolder"
                                    runat="server"
                                    OnReadData="StoreFolder_RefreshData"
                                    PageSize="20">
                                    <Model>
                                        <ext:Model ID="ModelFoder" runat="server" IDProperty="Name">
                                            <Fields>
                                                <ext:ModelField Name="Name" Type="String" />
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store>
                            <ColumnModel runat="server">
                                <Columns>
                                    <ext:Column runat="server" Text="Tên thư mục" Width="109" DataIndex="Name" Flex="1"></ext:Column>
                                </Columns>
                            </ColumnModel>
                            <SelectionModel>
                                <ext:CheckboxSelectionModel runat="server" Mode="Multi" />
                            </SelectionModel>
                            <DirectEvents>
                                <ItemDblClick OnEvent="PathDb_Click">
                                    <ExtraParams>
                                        <ext:Parameter Name="Name" Value="record.data.Name" Mode="Raw" />
                                    </ExtraParams>
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </ItemDblClick>
                            </DirectEvents>
                        </ext:GridPanel>
                    </Content>
                </ext:Panel>
                <ext:Panel
                    ID="PanelFile"
                    Region="Center"
                    Cls="images-view"
                    runat="server"
                    Title="Tập tin (0 tập tin được chọn)"
                    BodyPadding="6">
                    <Items>
                        <ext:DataView
                            ID="ImageView"
                            runat="server"
                            MultiSelect="False"
                            OverItemCls="x-item-over"
                            ItemSelector="div.thumb-wrap"
                            EmptyText="Không có tập tin được hiễn thị"
                            ContextMenuID="DataViewContextMenu" MarginSpec="0 5 0 0" Width="310"
                            TrackOver="true">
                            <Store>
                                <ext:Store ID="StoreFile" runat="server" PageSize="20" OnReadData="StoreFile_RefreshData">
                                    <Model>
                                        <ext:Model runat="server" IDProperty="name">
                                            <Fields>
                                                <ext:ModelField Name="name" />
                                                <ext:ModelField Name="url" />
                                                <ext:ModelField Name="size" Type="Int" />
                                                <ext:ModelField Name="lastmod" Type="Date" />
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store>
                            <Tpl runat="server">
                                <Html>
                                    <tpl for=".">
								    <div class="thumb-wrap" id="{name}">
									    <div class="thumb">
									        <img src="{url}" title="{name}"></img>
									    </div>
									    <span class="x-editable" style="color: red">{shortName}</span>
								    </div>
							    </tpl>
                                    <div style="clear: both !important"></div>
                                </Html>
                            </Tpl>
                            <PrepareData Fn="prepareData" />
                            <Listeners>
                                <SelectionChange Fn="selectionChanged" />
                            </Listeners>
                            <DirectEvents>
                                <SelectionChange OnEvent="Select_Rows">
                                    <EventMask ShowMask="true" Msg="Đang tải" />
                                </SelectionChange>
                            </DirectEvents>
                        </ext:DataView>
                        <ext:Hidden runat="server" ID="hdPath"></ext:Hidden>
                        <ext:Hidden runat="server" ID="lbFileName"></ext:Hidden>
                    </Items>
                    <DockedItems>
                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:PagingToolbar runat="server" StoreID="StoreFile" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                                <ext:ToolbarSeparator />
                                <ext:Button ID="btnSubmitSelect" runat="server" Text="Chọn">
                                    <DirectEvents>
                                        <Click OnEvent="btnSubmitSelect_Click">
                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                <ext:ToolbarSeparator />
                                <ext:Button ID="btnDelFile" runat="server" Text="Xoá">
                                    <DirectEvents>
                                        <Click OnEvent="btnDelFile_Click">
                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                            <ExtraParams>
                                                <ext:Parameter Name="name" Value="btnDelFile"></ext:Parameter>
                                            </ExtraParams>
                                            <Confirmation ConfirmRequest="true"
                                                Title="Thông Báo" Message="Bạn có muốn xoá tập tin này không ?">
                                            </Confirmation>
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                <ext:ToolbarSeparator />
                                <ext:Button ID="btnClear" runat="server" Text="Bỏ chọn">
                                    <DirectEvents>
                                        <Click OnEvent="btnClear_Click">
                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                <ext:ToolbarSeparator />
                                <ext:Button ID="btnCloseFileManager" runat="server" Text="Đóng">
                                    <DirectEvents>
                                        <Click OnEvent="btnCloseFileManager_Click">
                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:Panel>
            </Items>
        </ext:Window>
        <ext:Window
            ID="WindowCreateFolder"
            runat="server"
            Closable="false"
            Resizable="false"
            Height="150"
            Icon="Lock"
            Title="Login"
            Draggable="false"
            Hidden="True"
            Width="350"
            Modal="True"
            Border="false"
            BodyPadding="5"
            HideMode="Offsets"
            Layout="FormLayout">
            <Items>
                <ext:TextField
                    ID="txtPath"
                    runat="server"
                    FieldLabel="Đường dẩn:"
                    ReadOnly="True"
                    EmptyText="Đường dẩn">
                </ext:TextField>

                <ext:TextField
                    ID="txtFolderName"
                    runat="server"
                    FieldLabel="Tên thư mục:"
                    EmptyText="Nhập vào tên thư mục">
                </ext:TextField>
            </Items>
            <Buttons>
                <ext:Button ID="btnCreate" runat="server" Text="Tạo thư mục" Icon="Disk">
                    <DirectEvents>
                        <Click OnEvent="btnCreate_Click">
                            <EventMask ShowMask="true" Msg="Đang tải..." />
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button ID="btnCloseFolder" runat="server" Text="Bỏ qua" Icon="Decline">
                    <DirectEvents>
                        <Click OnEvent="btnCloseFolder_Click">
                            <EventMask ShowMask="true" Msg="Đang tải..." />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
        <ext:Menu ID="DataViewContextMenu" runat="server">
            <Items>
                <ext:Button ID="btnViewFile" runat="server" Text="Xem" Icon="Magnifier" Flat="True">
                    <DirectEvents>
                        <Click OnEvent="btnViewFile_Click">
                            <EventMask ShowMask="true" Msg="Đang tải" />
                        </Click>
                    </DirectEvents>
                    <Listeners>
                        <Click Handler="#{DataViewContextMenu}.hide();"></Click>
                    </Listeners>
                </ext:Button>
                <ext:Button ID="btnDownload" runat="server" Text="Tải về" Icon="DiskDownload" Flat="True">
                    <DirectEvents>
                        <Click OnEvent="btnDownload_Click"></Click>
                    </DirectEvents>
                    <Listeners>
                        <Click Handler="#{DataViewContextMenu}.hide();"></Click>
                    </Listeners>
                </ext:Button>
            </Items>
        </ext:Menu>
        <ext:Window
            ID="WindowViewFile"
            runat="server"
            Title="Xem ảnh"
            Icon="Map"
            Width="800"
            Height="498"
            Resizable="False"
            Modal="True"
            AutoScroll="True"
            Hidden="True"
            Region="Center"
            HideMode="Offsets"
            Border="False"
            DefaultAnchor="100%">
            <Items>
                <ext:Image ID="ImageFile" runat="server">
                    <ResizableConfig runat="server" PreserveRatio="true" HandlesSummary="s e se" />
                </ext:Image>
            </Items>
        </ext:Window>
        <%--End--%>
    </form>
</body>
</html>